Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayExt Class / GetEnum Method / GetEnum<T>(IPdfArray,Int32,T) Method
The current array.
The value index.
The default value.

In This Topic
    GetEnum<T>(IPdfArray,Int32,T) Method
    In This Topic
    Gets the enum value at the specified index. If the value does not exist or cannot be converted to an enum, returns defValue.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetEnum(Of T As {New, Struct})( _
       ByVal array As IPdfArray, _
       ByVal index As System.Integer, _
       ByVal defValue As T _
    ) As T
    public static T GetEnum<T>( 
       IPdfArray array,
       System.int index,
       T defValue
    )
    where T: new(), struct

    Parameters

    array
    The current array.
    index
    The value index.
    defValue
    The default value.

    Type Parameters

    T

    Return Value

    The value at the specified index, or defValue.
    See Also